.tab {
    width: 80%;
    border: 1px solid blue;
    border-collapse: collapse;
    margin: auto;
}

.tab td,
.tab th {
    border: 1px solid blue;
    text-align: center;
}